import request from '@/utils/request'

export function userList(query) {
  return request({
    url: '/user/userList',
    method: 'post',
    data: query
  })
}

export function createUser(data) {
  return request({
    url: '/user/createUser',
    method: 'post',
    data: data
  })
}

export function updateUser(data) {
  return request({
    url: '/user/updateUser',
    method: 'post',
    data
  })
}

export function deleteRole(id) {
  return request({
    url: `/user/deleteUser/${id}`,
    method: 'get'
  })
}
